package com.hqyj.shop.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.hqyj.shop.pojo.*;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hqyj.shop.util.ResultVo;
import com.sun.org.apache.regexp.internal.RE;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rock
 * @since 2024-10-16 10:45:08
 */
public interface OrderInfoService extends IService<OrderInfo> {

     /**
      * 生成支付宝二维码的支付链接地址
      * @param code
      * @return
      */
     String createQrCode(MyQrCode code) throws JsonProcessingException;

     /**
      * 订单生成
      * @param request
      * @return
      */
     ResultVo insert(OrderInfo orderInfo, HttpServletRequest request);

     /**
      * 支付成功后的修改订单
      * @return
      */
     ResultVo updateOrder(String orderNo,String subject);
}
